|
servo3 2.2.0
|
This file contains API for Servo 3 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_pwm.h"Go to the source code of this file.
Data Structures | |
| struct | servo3_t |
| Servo 3 Click context object. More... | |
| struct | servo3_cfg_t |
| Servo 3 Click configuration object. More... | |
Enumerations | |
| enum | servo3_return_value_t { SERVO3_OK = 0 , SERVO3_ERROR = -1 } |
| Servo 3 Click return value data. More... | |
Functions | |
| void | servo3_cfg_setup (servo3_cfg_t *cfg) |
| Servo 3 configuration object setup function. | |
| err_t | servo3_init (servo3_t *ctx, servo3_cfg_t *cfg) |
| Servo 3 initialization function. | |
| err_t | servo3_set_duty_cycle (servo3_t *ctx, float duty_cycle) |
| Servo 3 sets PWM duty cycle. | |
| err_t | servo3_pwm_stop (servo3_t *ctx) |
| Servo 3 stop PWM module. | |
| err_t | servo3_pwm_start (servo3_t *ctx) |
| Servo 3 start PWM module. | |
| void | servo3_write_control (servo3_t *ctx, uint32_t fc_data, uint8_t bc_data) |
| Servo 3 write control function. | |
| void | servo3_write_data (servo3_t *ctx, uint8_t *data_in, uint8_t len) |
| Servo 3 write data function. | |
| void | servo3_set_sclk_pin (servo3_t *ctx, uint8_t state) |
| Servo 3 set SCLK pin function. | |
| void | servo3_set_sin_pin (servo3_t *ctx, uint8_t state) |
| Servo 3 set SIN pin function. | |
| void | servo3_set_xlat_pin (servo3_t *ctx, uint8_t state) |
| Servo 3 set XLAT pin function. | |
| uint8_t | servo3_get_sout_pin (servo3_t *ctx) |
| Servo 3 get SOUT pin state function. | |
| err_t | servo3_set_channel_pwm (servo3_t *ctx, uint8_t ch_num, uint16_t pwm_out) |
| Servo 3 set channel PWM function. | |
| err_t | servo3_set_angle (servo3_t *ctx, uint8_t ch_num, uint8_t angle) |
| Servo 3 set angle function. | |
| void | servo3_update_output (servo3_t *ctx) |
| Servo 3 update output function. | |
This file contains API for Servo 3 Click Driver.